/* ============================================
   DOCZY HOME PAGE - PROFESSIONAL STYLESHEET
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-darker: #2563eb;
    --secondary-green: #22c55e;
    --secondary-green-dark: #16a34a;
    --secondary-purple: #a855f7;
    --secondary-purple-dark: #9333ea;
    --secondary-cyan: #0ea5e9;
    --secondary-cyan-dark: #0284c7;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-light: #e0e7ff;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, #f0f4ff 100%);
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-orb-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-bg-orb-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
    animation: float 10s ease-in-out infinite 1s;
}

.floating-icon {
    position: absolute;
    font-size: 60px;
    opacity: 0.08;
    animation: float 5s ease-in-out infinite;
}

/* Badge Styling */
.badge-animated {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 25px;
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

/* Rotating Text */
#rotating-text {
    color: var(--primary-color);
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    font-size: 72px;
    letter-spacing: 0;
    font-style: normal;
    display: inline-block;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-dark) 20%, rgba(29, 78, 216, 0.7) 40%, rgba(29, 78, 216, 0.3) 70%, transparent 100%);
    background-position: 0 calc(100% - 4px);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    padding-bottom: 6px;
}

/* Hero Content */
.hero-content {
    z-index: 1;
}

.hero-content h1 {
    line-height: 1.25;
    font-size: 48px;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-content p {
    max-width: 520px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Button Group */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 28px;
    font-size: 16px;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.25);
    border: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
}

.btn-outline-primary {
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 28px;
    font-size: 16px;
    border: 2px solid var(--border-light);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    grid-auto-flow: dense;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1.5px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.stat-item-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.25);
}

.stat-item-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.25);
}

.stat-item-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: rgba(168, 85, 247, 0.25);
}

.stat-item-cyan {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-color: rgba(14, 165, 233, 0.25);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px;
}

.stat-icon-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-icon-green {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--secondary-green-dark) 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.stat-icon-purple {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--secondary-purple-dark) 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.stat-icon-cyan {
    background: linear-gradient(135deg, var(--secondary-cyan) 0%, var(--secondary-cyan-dark) 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.stat-text-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.stat-text-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 0;
}

/* Doctor Image Wrapper */
.hero-image-wrapper {
    position: relative;
}

.doctor-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    perspective: 1000px;
    position: relative;
}

.doctor-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.doctor-image {
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.08));
}

/* Doctor Card */
.card-doctor {
    position: absolute;
    bottom: 30%;
    right: 0%;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    min-width: 260px;
    backdrop-filter: blur(10px);
}

.doctor-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.doctor-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.doctor-card-info h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.doctor-card-specialty {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-widget {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.01);
    }
}

@keyframes float-doctor {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.01);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
        transform: scale(1.3);
    }
}

@keyframes slideInAvatar {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-icon {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    }
}

@keyframes bounce-up {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(60px) rotateY(20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth widget animations */
.floating-widget {
    animation: float-widget 4s cubic-bezier(0.45, 0, 0.55, 1) infinite !important;
}

.floating-widget:nth-of-type(1) {
    animation: float-widget 4s cubic-bezier(0.45, 0, 0.55, 1) infinite 0.2s !important;
}

.floating-widget:nth-of-type(2) {
    animation: float-widget 5s cubic-bezier(0.45, 0, 0.55, 1) infinite 0.4s !important;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

@media (max-width: 992px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Hide floating widgets on tablet and below */
    .floating-icon {
        display: none !important;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 40px 0 !important;
        background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f4ff 100%) !important;
    }
    
    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    #rotating-text {
        font-size: 40px !important;
        padding-bottom: 4px !important;
        background-size: 100% 3px !important;
        background-position: 0 calc(100% - 3px) !important;
    }
    
    .display-2, h1, .h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    .display-4, h2, .h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    .col-lg-5, .col-lg-6, .col-lg-7, .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }
    
    .d-flex.justify-content-center {
        overflow: visible !important;
    }
    
    .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .pr-lg-4, .ps-lg-5, .ps-lg-4, .pe-lg-5, .pe-lg-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .stat-item {
        padding: 16px 12px !important;
    }
    
    div[style*="width: 360px; height: 360px"] {
        width: 90% !important;
        max-width: 280px !important;
        height: 280px !important;
        aspect-ratio: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }
    
    div[style*="width: 360px; height: 360px"] > div {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        border-radius: 50% !important;
    }
    
    div[style*="width: 360px; height: 360px"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    div[style*="grid-template-columns: repeat(2, 1fr); gap: 20px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .row[style*="margin-left: -20px"] {
        margin-left: -12px !important;
        margin-right: -12px !important;
        row-gap: 24px !important;
    }
    
    .row[style*="margin-left: -20px"] .col-6 {
        padding: 0 12px !important;
    }
    
    .button-group {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    
    .btn-lg {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    .py-8 { padding-top: 20px !important; padding-bottom: 20px !important; }
    .py-12 { padding-top: 24px !important; padding-bottom: 24px !important; }
    .py-lg-14 { padding-top: 24px !important; padding-bottom: 24px !important; }
    .py-lg-16 { padding-top: 28px !important; padding-bottom: 28px !important; }
    .mb-8 { margin-bottom: 20px !important; }
    .mb-6 { margin-bottom: 16px !important; }
    .mb-lg-0 { margin-bottom: 16px !important; }
    .mb-7 { margin-bottom: 14px !important; }
    .mb-4 { margin-bottom: 8px !important; }
    .mt-8 { margin-top: 12px !important; }
    .mt-12 { margin-top: 16px !important; }
    
    .fs-18 { font-size: 16px !important; }
    .fs-20 { font-size: 18px !important; }
    h3, .h3 { font-size: 18px !important; }
    h4, .h4 { font-size: 16px !important; }
    h5, .h5 { font-size: 14px !important; }
    p { font-size: 13px !important; }
}

@media (max-width: 576px) {
    body {
        font-size: 12px;
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    section {
        overflow: visible !important;
    }
    
    /* Hide floating widgets and background elements */
    .hero-bg-elements {
        display: none !important;
    }
    
    .floating-icon {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }
    
    #rotating-text {
        font-size: 28px !important;
        padding-bottom: 3px !important;
        background-size: 100% 2px !important;
        background-position: 0 calc(100% - 2px) !important;
    }
    
    /* Override all inline font sizes */
    [style*="font-size: 48px"] {
        font-size: 20px !important;
    }
    
    [style*="font-size: 72px"] {
        font-size: 28px !important;
    }
    
    [style*="font-size: 32px"] {
        font-size: 24px !important;
    }
    
    [style*="font-size: 28px"] {
        font-size: 20px !important;
    }
    
    [style*="font-size: 18px"] {
        font-size: 16px !important;
    }
    
    [style*="font-size: 16px"] {
        font-size: 14px !important;
    }
    
    [style*="font-size: 15px"] {
        font-size: 13px !important;
    }
    
    [style*="font-size: 14px"] {
        font-size: 12px !important;
    }
    
    [style*="font-size: 13px"] {
        font-size: 11px !important;
    }
    
    [style*="gap: 20px"] {
        gap: 12px !important;
    }
    
    [style*="gap: 16px"] {
        gap: 12px !important;
    }
    
    [style*="gap: 12px"] {
        gap: 8px !important;
    }
    
    [style*="gap: 10px"] {
        gap: 6px !important;
    }
    
    [style*="padding: 14px"] {
        padding: 10px !important;
    }
    
    [style*="padding: 18px"] {
        padding: 12px !important;
    }
    
    [style*="padding: 20px"] {
        padding: 12px !important;
    }
    
    [style*="padding: 40px"] {
        padding: 20px !important;
    }
    
    [style*="padding: 50px"] {
        padding: 24px !important;
    }
    
    .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p {
        font-size: 13px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .stat-item {
        padding: 12px !important;
    }
    
    .stat-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .stat-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .stat-text-value {
        font-size: 14px !important;
    }
    
    .stat-text-label {
        font-size: 10px !important;
    }
    
    .card-doctor {
        min-width: 220px !important;
        padding: 14px !important;
        bottom: 15% !important;
    }
    
    .doctor-card-avatar {
        width: 48px !important;
        height: 48px !important;
    }
    
    .doctor-card-info h6 {
        font-size: 12px !important;
    }
    
    .doctor-card-specialty {
        font-size: 10px !important;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}
